using System;
using System.Collections.Generic;
using System.Text;

namespace TextEditor
{
    public class A_PrintView : A_Action
    {
        public override string ActionName()
        {
            return "printview";
        }

        public override int CheckState()
        {
            return base.myOwnerDocument.Info.DesignMode == true ? 1 : 0;
        }        

        public override bool Execute()
        {
            base.myOwnerDocument.Info.DesignMode = !base.myOwnerDocument.Info.DesignMode;
            return true;
        }
    }
}
